package org.vineatoum.view.utils;

import java.awt.Component;

import javax.swing.DefaultListCellRenderer;
import javax.swing.JList;

import org.vineatoum.business.state.abstraction.VinAbstract;
import javax.swing.JLabel;

public class CellRendererVinAbstract extends DefaultListCellRenderer {
	private VinAbstract v;
	/**
	 * @wbp.nonvisual location=31,39
	 */
	private final JLabel label = new JLabel("New label");
	public CellRendererVinAbstract() {
		super();
		
	}
	@Override
	public Component getListCellRendererComponent(JList arg0, Object arg1,
			int arg2, boolean arg3, boolean arg4) {
		v = (VinAbstract) arg1;
		// TODO Auto-generated method stub
		JLabel label =
		      (JLabel)super.getListCellRendererComponent(arg0,
		                                                 arg1,
		                                                 arg2,
		                                                 arg3,
		                                                 arg4);
		label.setText("Vin : "+label.getText());
		return label;
	}
	
	
	

}
